
import { token } from '@/assets/api/token'
export const tokenFn = data => {
  token({
    key: data || ''
  }).then((res) => {
    localStorage.setItem('token', JSON.stringify(res.data.token));
  })
}